<template>
  <div class="ne-container">
    <make-card
      v-for="item in dataSource"
      :key="item.indexCode"
      :row="item"
      is-notice
      @approval="approvalResult"
    />
    <van-empty v-if="!dataSource.length" description="暂无数据" />
  </div>
</template>

<script>
import MakeCard from './components/MakeCard.vue'
import pagingMixin from '../../mixins/pagingMixin'
import { mapGetters } from 'vuex'
export default {
  name: 'wx_pages_zhfw_myNotice',
  components: { MakeCard },
  mixins: [pagingMixin],
  data() {
    return {
      talentList: [],
      restfulApi: '/tbAppointment/page',
    }
  },
  computed: {
    ...mapGetters(['userInfo']),
  },
  mounted() {
    this.search({
      operationType: '1',
      appointmentType: '4',
      talentUserId: this.userInfo.userId,
    })
  },
  methods: {
    approvalResult(approvalResult) {
      this.search({
        operationType: '1',
        appointmentType: '4',
        talentUserId: this.userInfo.userId,
      })
    },
  },
}
</script>
